<!DOCTYPE html>
<html>
<head>
    

    <include file="Common/head"/>

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>菜单管理</h5>
        </div>
        <div class="ibox-content">
            <div class="row row-lg">
                
                <div class="col-sm-12">
                    <div class="clearfix" style="width:100%;">
                        <div class="bars pull-left"><div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                            <if condition="I('get.pid',0) neq 0">
                                <button type="button" class="btn btn-outline btn-default" onclick="window.history.go(-1);">
                                    <i class="glyphicon glyphicon-chevron-left" aria-hidden="true"></i>
                                </button>
                            </if>
                            <button type="button" class="btn btn-outline btn-default" href="{:U('Menu/edit',['pid'=>I('get.pid',0)])}">
                                <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
                            </button>
                            <button type="button" class="btn btn-outline btn-default confirm" form="form" action="{:U('Menu/delete')}">
                                <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                            </button>
                        </div></div>
                        <div class="columns columns-right btn-group pull-right" style="margin-left: 5px;">
                            <button class="btn btn-default btn-outline" type="button" name="refresh" title="刷新" href="__SELF__"><i class="glyphicon glyphicon-repeat"></i></button>
                        </div>
                        <div class="pull-right search">
                            <input class="form-control input-outline" type="text" placeholder="搜索">
                        </div>
                    </div>
                    <div class="table-responsive">
                        <form id="form" method="post">
                            <table class="table table-hover">
                                <thead>
                                <tr>
                                    <th>
                                        <label>
                                            <input type="checkbox" name="checkAll" child="del-check">
                                            <span>全选</span>
                                        </label>
                                    </th>
                                    <th>名称</th>
                                    <th>上级菜单</th>
                                    <th>分组</th>
                                    <th>URI</th>
                                    <th>排序</th>
                                    <th>仅开发模式显示</th>
                                    <th>隐藏</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="info">
                                        <tr>
                                            <th>
                                                <label style="cursor: pointer; width: 100%;height: 100%;">
                                                    <input class="del-check" name="id[]" type="checkbox" class="checkbox" value="{$info.id}">
                                                    <span></span>
                                                </label>
                                            </th>
                                            <td><a href="{:U('Menu/index',['pid'=>$info['id']])}">{$info.title}</a></td>
                                            <td>{$info.pid}</td>
                                            <td>{$info.group}</td>
                                            <td>{$info.url}</td>
                                            <td>{$info.sort}</td>
                                            <td>{$info.is_dev_text}</td>
                                            <td>{$info.hide_text}</td>
                                            <td>{$info.status_text}</td>
                                            <td>
                                                <button type="button" href="{:U('Menu/edit',array('id'=>$info['id']))}" class="btn btn-white btn-sm"><i class="fa fa-edit"></i> 编辑 </button>
                                                <button type="button" href="{:U('Menu/delete',array('id'=>$info['id']))}" class="btn btn-white btn-sm confirm"><i class="fa fa-trash"></i> 删除 </button>
                                            </td>
                                        </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                    </div>
    
                    <ul class="pagination">
                        {$page}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<include file="Common/footer"/>
<script src="__JS__/content.min.js?v=1.0.0"></script>
</body>
</html>
